var Dir = function (name, parent) {
	this.name = name;
	this.parent = parent;
	this.dirs = {};
	this.files = {};
};

Dir.prototype = {
		
};

/******************************************************/

var File = function (name, parent, blocksize, replication) {
	this.name = name;
	this.parent = parent;
	this.blocksize = blocksize;
	this.replication = replication;
	this.blocks = [];
	this.size = 0;
};

File.prototype = {
	setLease: function (client) {
		this.writer = client;
	}
};

/******************************************************/

var Filesystem = function () {
	this.root = new Dir("/", null);
};

Filesystem.prototype = {
	getFile: function (fullpath) {},
	getDir: function (fullpath) {},
	addFile: function (fullpath) {},
	addDir: function (fullpath) {},
	removeDir: function (fullpath) {},
	removeFile: function (fullpath) {}
};